
*{
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-transition: background .2s;
    -moz-transition: background .2s;
    -ms-transition: background .2s ;
    -o-transition: background .2s ;
    transition: background .2s;
    /*浏览器的蓝色边框*/
    outline: 0;
}

body{
    background: #00334b;
    color: #fff;
    }
textarea,
input[type=text], input[type=date]{
    display: block;
    width: 100%;
    background: #ddd;
    -webkit-box-shadow: 0 2px 3px rgba(0,0,0,.4);
    -moz-box-shadow: 0 2px 3px rgba(0,0,0,.4);
    box-shadow: 0 2px 3px rgba(0,0,0,.4);
}
textarea{
    min-height: 100px;
}
textarea:hover,
textarea:focus,
input[type=text]:hover,
input[type=date]:hover,
input[type=text]:focus,
input[type=date]:focus{
    background: #fff;
    -webkit-box-shadow: 0 2px 3px rgba(0,0,0,.2);
    -moz-box-shadow: 0 2px 3px rgba(0,0,0,.2);
    box-shadow: 0 2px 3px rgba(0,0,0,.2);
}
button{
    display: inline-block;
    border:0;
    cursor: pointer;
    color: #333;
}
.add-task input[type=text]{
    float: left;
    width: 84%;
    margin-right:1%;
}
.add-task button[type=submit]{
    width: 15%;
    background: #46b1e4;
}

.add-task button[type=submit],
.task-item{
    -webkit-box-shadow: 0 2px 3px rgba(0,0,0,.4);
    -moz-box-shadow: 0 2px 3px rgba(0,0,0,.4);
    box-shadow: 0 2px 3px rgba(0,0,0,.4);
}
.add-task button[type=submit]:hover{
    background: #5fb9e4;
}

.container{
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    }
h1{
    text-align: center;
}
.task-item{
    padding: 10px;
    background: #fff;
    color: #333;
    margin-bottom: 2px;
    border-radius: 3px;
    cursor: pointer;

}
.task-item:hover{
    background: #ddd;
}
.tasks-list{
    margin:10px 0;
}
input,
.task-item,
button,
task-detail-mask,
textarea{
    border-radius: 3px;
    padding:10px;
}
textarea,
task-detail,
input[type=text],
input[type=date]{
    border:0;
}
.task-detail-mask,
task-detail{
    position: absolute;
}
.task-detail-mask{
    display: none;
    top:0;
    bottom:0;
    left:0;
    right: 0;
    background: rgba(30,30,30,.6);

}
.task-detail > * {
    margin-bottom: 10px;
}
.task-detail{
    display: none;
    background: #fff;
    color: #333;
    width: 50%;
    height:100%;
    padding:10px;
    position: absolute;
    right:0;
    bottom:0;
}
.task-detail .content{
    padding:10px;
    font-weight: 900;
    cursor: pointer;
}